home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / comm3n4.arc / COMM3N4.TEC next >
Text File  |  1989-09-15  |  5KB  |  88 lines

  1. DESQview Technical Note
  2.  
  3. Q:  Why doesn't DESQview support more than COM1 and COM2?
  4.  
  5. Q:  How can I run more COM ports on my machine in DESQview?
  6.  
  7. In DESQview's Change a Program, DESQview allows you to define the 
  8. COM port that is to be used by the program.  The choices are 1 
  9. and 2.  This does not mean however, that DESQview does not 
  10. support the use of COM3 and COM4.  It does.  
  11.  
  12. DESQview allows you to specify whether the program uses COM1 or 
  13. COM2 so that it can attempt to make the system appear to have 
  14. only the port (1 or 2) that you have specified.  This is so ill-
  15. behaved programs that clear both ports on startup, making the 
  16. assumption that they are the only program running on the machine, 
  17. will not interfere with a program that is already using the other 
  18. port.  These programs do not typically interfere with COM3 or 
  19. COM4, so if you are using one of these ports, you can set "Uses 
  20. serial ports" to either N or Y.  It makes no difference.
  21.  
  22. However, there is a key issue here that is important to 
  23. understand when trying to use ports beyond 2 in a multi-tasking 
  24. system.  There are two parts to serial communication:  
  25.  
  26. 1.  The software side, which is the BIOS COM port identification.
  27. 2.  The hardware side, which is the hardware interrupt (IRQ) that 
  28.     is being used.
  29.  
  30. A good analogy for understanding the importance of this is to 
  31. think of serial port communications as a telephone system.  The 
  32. COM port represents the actual telephone unit (the extension if 
  33. you will).  The hardware interrupt or IRQ represents the line out 
  34. that connects to the phone company.  COM1 and COM2 have their own 
  35. dedicated lines (IRQ4 and IRQ3 respectively).  This is pretty 
  36. much a standard, defined configuration in the PC environment.
  37.  
  38. But when you add a COM3 or COM4, they must be assigned an IRQ.  
  39. You have two options, you can assign them their own separate IRQ, 
  40. or you can assign them to one of the IRQ's that are already in 
  41. use (3 or 4).  However, if you assign a new COM port to an IRQ 
  42. that is already assigned to another port, it is like adding 
  43. another telephone extension to an existing line.  You will be 
  44. able to call out from either extension, but you will not be able 
  45. to call out from both extensions at the same time - for that, you 
  46. need a dedicated line.
  47.  
  48. Most of the hardware devices (modems, mice, plotters, scanners or 
  49. whatever), that allow you to define them as a port above 2, 
  50. unfortunately do so while reusing IRQ3 or IRQ4.  This works fine, 
  51. when using the ports from free standing programs, one at a time, 
  52. but in multi-tasking systems, these setups are generally 
  53. unsatisfactory as users of multi-tasking systems want to be able 
  54. to use the ports simultaneously.
  55. If the hardware that supplies your additional COM ports allows 
  56. you to configure the port to a free IRQ, other than IRQ3 or IRQ4 
  57. that is free on your machine, say IRQ2 or IRQ5, then that would 
  58. be like a phone with another line out and you would be able to 
  59. use it simultaneously with COM1 and COM2.  Otherwise, you are 
  60. limited to using these ports serially, not simultaneously.
  61.  
  62. Use of FOSSIL drivers:  There are some systems out there that are 
  63. now accessing multiple ports through the use of FOSSIL drivers 
  64. and special hardware (sometimes with its own on-board processor). 
  65. A full discussion of FOSSIL drivers is beyond the scope of this 
  66. technical note, but briefly, this is how they work:  A driver is 
  67. loaded in the CONFIG.SYS file and setups up communications with 
  68. the hardware, which may contain 4, 8, or even more ports.  The 
  69. hardware usually uses ONLY one standard hardware IRQ, usually 
  70. IRQ3 (normally COM2).  The driver then is addressed as though it 
  71. were a series of COM ports (again, 4, 8, or more).  When 
  72. communications to one of the ports is received, the driver 
  73. multiplexes through the single IRQ to communicate with the board
  74. which, since it knows how to talk to the driver can determine 
  75. which physical port on the board the data is intended for.  We 
  76. have had a number of users who have used systems with FOSSIL 
  77. drivers to run multiple ports on electronic bulletin board 
  78. systems and for CAM process control.  To implement a multi-port 
  79. system using FOSSIL drivers however, you need three things:  The 
  80. hardware, the FOSSIL driver and communications that are 
  81. specifically written to use the FOSSIL driver.
  82.  
  83. For more information about FOSSIL drivers, check out a file 
  84. called FOSSIL.ARC, available on many bulletin board systems 
  85. around the country.
  86.  
  87.              * * *   E N D   O F   F I L E    * * * 
  88.